package com.cfpamf.ms.insur.pay.service;

import com.cfpamf.ms.insur.pay.dao.PayExcpRecordMapper;
import com.cfpamf.ms.insur.pay.pojo.po.PayExcpRecordPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: zhangjian
 * @date: 2019/10/25 11:50
 * @description:
 */
@Slf4j
@Service
public class PayExcpService {
    @Autowired
    private PayExcpRecordMapper payExcpRecordMapper;

    public int addPayExcpRecord(String objId,Integer buzType,Integer excpType,String excpMsg){
        PayExcpRecordPO excpRecordPO = new PayExcpRecordPO();
        excpRecordPO.setObjId(objId);
        excpRecordPO.setBuzType(buzType);
        excpRecordPO.setExcpType(excpType);
        excpRecordPO.setExcpMsg(excpMsg);
        return payExcpRecordMapper.insertSelective(excpRecordPO);
    }
}
